
import java.awt.Button;
import java.awt.Font;
import java.awt.Frame;
import java.awt.Label;
import java.awt.TextField;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JOptionPane;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Luis
 */
public class Register {

    Frame f=new Frame("Register");
    public void ventanar(){
        f.setLayout(null);

        Label l=new Label("This is a Unregistered copy(Trial version) of Ultra DVD Creator,");
        l.setBounds(60,30 , 350, 20);
        f.add(l);
         Label l2=new Label("Please Register you cpy so you can use it in full functions. ");
        l2.setBounds(60,50 , 350, 20);
        f.add(l2);
         Label l3=new Label("30 Days money back Guarantee!");
         l3.setFont(new Font("TimeRoman", Font.BOLD, 15));
         l3.setBounds(90,80 , 350, 20);
        f.add(l3);

         Label l4=new Label("Registration Process");
         l4.setFont(new Font("TimeRoman", Font.BOLD, 15));
         l4.setBounds(150,100 , 350, 20);
        f.add(l4);

         Label l5=new Label("1. Connect to the Internet.");
        l5.setBounds(70,140 , 250, 20);
        f.add(l5);

         Label l6=new Label("2. Click here to buy a licensed code");
        l6.setBounds(70,160 , 250, 20);
        f.add(l6);

        Button b=new Button("Buy now");
        b.setBounds(350, 160, 80, 20);
        f.add(b);

        Label l7=new Label("3. After the order was completed, you will receive a email");
        l7.setBounds(70,180 , 350, 20);
        f.add(l7);

        Label l8=new Label("Licensed Name: xxx xxx ");
        l8.setBounds(90,200 , 250, 20);
        f.add(l8);
        Label l9=new Label("Licensed Code: xxx xxx");
        l9.setBounds(90,220 , 250, 20);
        f.add(l9);
        Label l10=new Label("5. Copy/Paste above name and license code into the ");
        l10.setBounds(70,240 , 300, 20);
        f.add(l10);
        Label l11=new Label("following items.Then click 'Register' Button.");
        l11.setBounds(90,260 , 300, 20);
        f.add(l11);

        Label l12=new Label("License Name:");
        l12.setBounds(60,290 , 100, 20);
        f.add(l12);

        TextField tf=new TextField();
        tf.setBounds(180, 290, 250,25 );
        f.add(tf);
        Label l13=new Label("License Code:");
        l13.setBounds(60,310 , 100, 20);
        f.add(l13);
        TextField tf2=new TextField();
        tf2.setBounds(180, 315, 250,25 );
        f.add(tf2);

        Button b2=new Button("Register");
        Button b3=new Button("Later");

        b2.setBounds(250,350 , 80 , 25);
        b3.setBounds(350, 350, 80, 25);
        f.add(b3);
        f.add(b2);

        b3.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                UltraDvd ul=new UltraDvd();
                ul.principal();
                f.dispose();
            }
        });

        b2.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                JOptionPane.showMessageDialog(f,"Has been Registered!!");
             UltraDvd ul=new UltraDvd();
                ul.principal();
                f.dispose();
            }
        });
        f.setVisible(true);
        f.setSize(450, 400);
        f.setResizable(false);
        f.setLocation(350,300);
    }


    public static void main(String[] args) {
        Register r=new Register();
        r.ventanar();
    }
}
